// 导出课表请求

import axios from "axios";

export default function () {
    return axios({
        method: "get",
        url: "/api/users/timetable",
        header: {
            Authorization: localStorage.getItem("Authorization")
        }
    }).then(() => {
        // TODO: 课表下载
        return {
            result: true
        }
    }).catch(error => {
        return {
            result: false,
            msg: error.response.data.msg
        }
    })
}